import request from '../utils/request'

export function getList(params) {
  return request.ajax({
      url: `/product/listNew`,
      method: 'get',
      loading:true,
      params
  })
}
export function getTemp(id) {
  return request.ajax({
      url: `/product/getTemp/${id}`,
      method: 'post'
  })
}
export function getInfo(id) {
  return request.ajax({
      url: `/product/${id}`,
      method: 'post'
  })
}
export function checkCan(id) {
  return request.ajax({
      url: `/product/checkCan/${id}`,
      method: 'post'
  })
}

export function checkCanTwo(params) {
  return request.ajax({
      url: `/product/checkCanTwo`,
      method: 'post',
      params
  })
}